package recipes

import (
	"github.com/gin-gonic/gin"
	. "savor_gin/controllers/recipes"
	"savor_gin/middlewares/token"
)

func RecipeLoad(g *gin.Engine) {
	g.DELETE("/recipe", DeleteRecipe)
	g.POST("/recipe", token.AuthMiddleware(), AddRecipe)
	g.PUT("/recipe/:recipeId", UpdateRecipeInfo)
	g.GET("/recipe", GetRecipeById)
	g.GET("/recipe/list", token.AuthMiddleware(), GetRecipeListByUserId)
	g.GET("/recipe/search", GetRecipeListLikeKey)
	g.GET("/recipe/lists", GetRecipeList)
}
